package top.yxqz.filter.pojo;

/**
 * @author Mr.余
 * @date 2022/12/2
 * @package top.yxqz.pojo
 * 图书实体类
 * 组合关系：对象可以使用其他对象里面的东西
 * 继承关系：对象可以使用父类中的东西
 */
public class Book {
    private String bookID;//图书编号
    private String bookName;//图书名称
    private double bookPay; //图书价格
    private String author;//作者

    private BookType bookType;//图书类型


    public Book() {
    }

    public Book(String bookID, String bookName, double bookPay, String author, BookType bookType) {
        this.bookID = bookID;
        this.bookName = bookName;
        this.bookPay = bookPay;
        this.author = author;
        this.bookType = bookType;
    }

    /**
     * 获取
     * @return bookID
     */
    public String getBookID() {
        return bookID;
    }

    /**
     * 设置
     * @param bookID
     */
    public void setBookID(String bookID) {
        this.bookID = bookID;
    }

    /**
     * 获取
     * @return bookName
     */
    public String getBookName() {
        return bookName;
    }

    /**
     * 设置
     * @param bookName
     */
    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    /**
     * 获取
     * @return bookPay
     */
    public double getBookPay() {
        return bookPay;
    }

    /**
     * 设置
     * @param bookPay
     */
    public void setBookPay(double bookPay) {
        this.bookPay = bookPay;
    }

    /**
     * 获取
     * @return author
     */
    public String getAuthor() {
        return author;
    }

    /**
     * 设置
     * @param author
     */
    public void setAuthor(String author) {
        this.author = author;
    }

    /**
     * 获取
     * @return bookType
     */
    public BookType getBookType() {
        return bookType;
    }

    /**
     * 设置
     * @param bookType
     */
    public void setBookType(BookType bookType) {
        this.bookType = bookType;
    }

    public String toString() {
        return "Book{bookID = " + bookID + ", bookName = " + bookName + ", bookPay = " + bookPay + ", author = " + author + ", bookType = " + bookType + "}";
    }
}
